<?php
	$id=0;
	if(isset($_GET['id']))
		$id=$_GET['id'];
	$result = getList(' WHERE AdminID='.$id,' LIMIT 0,1');
	$row = mysql_fetch_array($result);
?>
<form action='' method='POST' class='form'>
<fieldset>
	<legend>Thông tin user</legend>
	<table width='100%' class='tbl_frm'>
		<tr>
			<th width="150px">AdminID</th>
			<td><input type="text" name="txt_id" value="<?php echo $row['AdminID'];?>" readonly /></td>
		</tr>
		<tr>
			<th>UserName</th>
			<td><input type="text" name="txt_User" value="<?php echo $row['AUserName'];?>" /></td>
		</tr>
		<tr hidden>
			<th>Password</th>
			<td><input type="hidden" name="txt_Password" value="<?php echo $row['APassword'];?>" /></td>
		</tr>
		<tr>
			<th>Fullname</th>
			<td><input type="text" name="txt_Name" value="<?php echo $row['AFullName'];?>" /></td>
		</tr>
		<tr>
			<th>Address</th>
			<td><input type='text' name='txt_Add' value="<?php echo $row['AAddress']?>" /></td>
		</tr>
		<tr>
			<th>Email</th>
			<td><input type='email' name='txt_Email' value="<?php echo $row['AEmail']?>"/></td>
		</tr>
		<tr>
			<th>Phone</th>
			<td><input type='text' name='txt_Phone' value="<?php echo $row['APhone']?>"/></td>
		</tr>
		<tr>
			<th>Typer User</th>
			<td><select name="seQuyen">
				<option value="0" <?php  if($row['Level']==0) echo 'selected';?> >Supperadmin</option>
				<option value="1" <?php  if($row['Level']==1) echo 'selected';?> >Manager</option>
				<option value="2" <?php  if($row['Level']==2) echo 'selected';?> >Member</option>
			</select></td>
		</tr>
		<tr>
			<th>isActive</th>
			<td>
				<label><input type="radio" name="opt_active" value='1' checked='true'/>Is Active</label> |
				<label><input type="radio" name="opt_active" value='0'/> Not Active</label>
			</td>
		</tr>
	</table>
</fieldset>
<input type="submit" name="cmd" value="Sửa"/>
<input type="reset" value="reset"/>
</form>
